<template>
  <div class="detail">
    <div class="ddisc">
      <div class="ddisc-container">
        12354885552
        <div class="ddisc-left">
          <div class="ddsic-leftct">
            123548
            <!-- 专辑简介封面信息 -->
            <div class="ddsic-top">
              <div class="cover">
                <img
                  src="http://p2.music.126.net/gK8_8HWrryUhW92UvE8ymQ==/109951167768186610.jpg?param=177y177"
                  alt=""
                />
              </div>
              <div class="ddtr">
                <div class="ddtrr">
                  <div class="topblk">
                    <div class="zhuanji">
                      <span class="iconfont icon-yinlezhuanji"></span>
                      <!-- <span class="album-name"></span> -->
                      <div class="album-name"><h2>有限身&nbsp;无穷念</h2></div>
                    </div>
                    <p class="singer">
                      <span>歌手:　</span>
                      <span><a href="">声音碎片乐队</a></span>
                    </p>
                    <p>发行时间:　2022-08-10</p>
                    <p>发行公司:　摩登天空</p>
                  </div>
                  <div class="btns">
                    <button class="btn-play btn-bgc1">
                      <a href="">
                        <span class="iconfont icon-bofang"></span>
                        <span>播放</span></a
                      >
                    </button>
                    <button class="btn-add btn-bgc1">
                      <a href=""><span class="iconfont icon-tianjia"></span></a>
                    </button>
                    <button class="btn-collection btn-bgc2">
                      <a href="">
                        <span class="iconfont icon-shoucangjia1"></span>
                        <span>收藏</span>
                      </a>
                    </button>
                    <button class="btn-share btn-bgc2">
                      <a href="">
                        <span class="iconfont icon-fenxiang"></span>
                        <span>(1309)</span>
                      </a>
                    </button>
                    <button class="btn-download btn-bgc2">
                      <a href="">
                        <span class="iconfont icon-xiazai"></span>
                        <span>下载</span>
                      </a>
                    </button>
                    <button class="btn-information btn-bgc2">
                      <a href="">
                        <span class="iconfont icon-xiaoxi"></span>
                        <span>(238)</span>
                      </a>
                    </button>
                  </div>
                </div>
              </div>
            </div>
            <!-- 专辑介绍 -->
            <div class="ddsic-introduce">
              <h3>专辑介绍:</h3>
              <p>
                你我都知道，潮水一定是会退去的，不管此刻它有多汹涌，最终都是会消散的。而那平淡无奇的镇海塔嘛，仍旧会矗立在原地。那塔究竟有没有退潮的能力，已经不重要了，重要的是每个人都愿意相信它，它会成为一种标志，成为每个退潮者的信仰，成为一个代表无名之辈的符号，那便是它的宿命
              </p>
              <div>
                <a href="">展开<span>标</span></a>
              </div>
            </div>
            <!-- 歌曲列表 -->
            <div class="ddsic-mlist">
              <div class="list-top">
                <div class="list-top-left">
                  <h3>包含歌曲列表</h3>
                  <span>12首歌</span>
                </div>
                <div class="list-top-right">
                  <span>图</span>
                  <a href="">生成外链播放器</a>
                </div>
              </div>
              <div class="list-bt">
                <table class="song-table">
                  <thead>
                    <tr>
                      <th class="one"><div>&nbsp;</div></th>
                      <th class="two"><div>歌曲标题</div></th>
                      <th class="three"><div>时长</div></th>
                      <th class="four"><div>歌手</div></th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td>
                        <div>
                          <span> 1</span>
                          <span>标</span>
                        </div>
                      </td>
                      <td><div>无人生还</div></td>
                      <td><div>03:47</div></td>
                      <td><div>法老</div></td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
            <!-- 评论 -->
            <div class="ddsic-comment"></div>
          </div>
        </div>
      </div>
      <div class="ddisc-right">123456789</div>
    </div>
  </div>
</template>

<script>
import { mapActions } from 'vuex'
import './font/iconfont.css'
export default {
  name: 'Detaildisc',
  data() {
    return {}
  },
  methods: {
    ...mapActions('newdisc', ['getAlbumDetailData']),
  },
  mounted() {
    console.log(this.$route.query.id)
    this.getAlbumDetailData(this.$route.query.id)
  },
}
</script>

<style lang="less" scoped>
.detail {
  height: 1000px;
  overflow: hidden;
  background-color: #f2f2f2;
  .ddisc {
    width: 990px;
    height: 700px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #d3d3d3;
    border-width: 0 1px;
    .ddisc-container {
      height: 600px;
      float: left;
      width: 100%;
      margin-right: -270px;
      border: 2px solid green;
      .ddisc-left {
        height: 500px;
        margin-right: 271px;
        border: 2px solid yellow;
        .ddsic-leftct {
          height: 600px;
          padding: 47px 30px 40px 39px;
          border: 1px solid red;
          text-align: left;
          // 专辑简介封面信息
          .ddsic-top {
            width: 640px;
            height: 177px;
            border: 1px solid red;
            .cover {
              float: left;
              position: relative;
              display: inline;
              margin: 0 -220px 0 0;
            }
            .ddtr {
              float: right;
              width: 100%;
              border: 2px solid yellow;
              .ddtrr {
                margin-left: 230px;
                .topblk {
                  margin-bottom: 20px;
                  .icon-yinlezhuanji {
                    font-size: 35px;
                    color: rgb(224, 40, 40);
                  }
                  .album-name {
                    // font-size: 20px;
                    float: right;
                    margin-top: 10px;
                    margin-right: 240px;
                    h2 {
                      font-size: 20px;
                      font-weight: normal;
                    }
                  }
                  p {
                    font-family: Arial, Helvetica, sans-serif;
                    color: #666;
                    margin: 4px 0 0;
                    a {
                      color: #0c73c2;
                    }
                  }
                }
                .btns {
                  margin-bottom: 25px;
                  button {
                    margin-right: 5px;
                    height: 31px;
                    border: none;
                    // border-radius: 3px;
                    a {
                      padding: 8px;
                      color: #333;
                      text-decoration: none;
                    }
                  }
                  .btn-play {
                    border-radius: 3px 0 0 3px;
                  }
                  .btn-add {
                    margin-left: -5px;
                    border-radius: 0 3px 3px 0px;
                  }
                  .btn-bgc1 {
                    background-color: #3887d2;
                    border: 1px solid #3480cb;
                    span {
                      color: #fff;
                    }
                  }
                  .btn-bgc2 {
                    border: 1px solid #c4c4c4;
                    background-color: #f4f4f4;
                  }
                }
              }
            }
          }
          // 专辑介绍
          .ddsic-introduce {
            width: 640px;
            margin-top: 20px;
            h3 {
              font-size: 12px;
            }
            p {
              color: #666;
              text-indent: 2em;
              margin-top: 4px;
              line-height: 24px;
            }
            div {
              text-align: right;
            }
          }
          // 歌曲列表
          .ddsic-mlist {
            width: 640px;

            margin-top: 27px;
            //头部
            .list-top {
              width: 100%;
              height: 35px;
              display: flex;
              // align-content: space-around;
              align-items: center;
              justify-content: space-between;
              border-bottom: 2px solid #c20c0c;
              .list-top-left {
                display: flex;
                h3 {
                  font-size: 20px;
                }
                span {
                  margin: 9px 0 0 20px;
                  color: #666;
                  font-size: 12px;
                }
              }
              .list-top-right {
                margin: 5px 20px 0 0;
                a {
                  color: #0c73c2;
                }
              }
            }
            //表格
            .list-bt {
              width: 640px;
              .song-table {
              }
            }
          }
        }
      }
    }
    .ddisc-right {
      position: relative;
      float: right;
      height: 400px;
      width: 270px;
      zoom: 1;
      // border: 1px solid red;
    }
  }
}
</style>
